package camadaIU;
  
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JButton;	

public class BotaoPeca extends JButton {
	
	private int forca;
	private int posicaoX;
	private int posicaoY;

	public BotaoPeca(String text, Icon icon, int forca,int posY, int posX) {
		super(text, icon);
		
		setForca(forca);
		setPosicaoY(posY);
		setPosicaoX(posX);		
	}

	public BotaoPeca(Icon icon,int forca,int posY, int posX) {
		super(icon);
		
		setForca(forca);
		setPosicaoY(posY);
		setPosicaoX(posX);		
	}

	public BotaoPeca(String text, ImageIcon icon, int forca) {
		super(text, icon);
		setForca(forca);
	}

	public BotaoPeca(ImageIcon icon, int forca) {
		super( icon);
		setForca(forca);
	}
	public BotaoPeca(int posY, int posX){
		setPosicaoY(posY);
		setPosicaoX(posX);	
	}

	//GETTERS E SETTERS
	
	public int getForca() {
		return forca;
	}

	public void setForca(int forca) {
		this.forca = forca;
	}

	public int getPosicaoX() {
		return posicaoX;
	}

	public void setPosicaoX(int posicaoX) {
		this.posicaoX = posicaoX;
	}

	public int getPosicaoY() {
		return posicaoY;
	}

	public void setPosicaoY(int posicaoY) {
		this.posicaoY = posicaoY;
	}
}
